package com.dgy.roomEval.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;


/**
 * 公寓楼栋房间树
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomTreeVO {
    /**
     * 名称
     */
    private String text;

    /**
     * 名称
     */
    private String value;

    /**
     * 子类
     */
    private List<RoomTreeVO> children;

    public RoomTreeVO(String floorId, String floorName) {
        this.value = floorId;
        this.text = floorName;
        this.children = new ArrayList<>();
    }
}